/*
* 冷梓硕
*
* */
package com.example.demo.service.Imp;

import com.example.demo.dao.LiabilitiesMapper;
import com.example.demo.model.Liabilities;
import com.example.demo.service.LiabilitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LiabilitiesImp implements LiabilitiesService {
    @Autowired
    private LiabilitiesMapper liabilitiesMapper;

    @Override
    public Liabilities LiaselectByPrimaryKey(int lid){
        return liabilitiesMapper.LiaselectByPrimaryKey(lid);
    }

    @Override
    public List<Liabilities> getAssets(){
        System.out.println("执行角色类型SQL语句");
        return liabilitiesMapper.getAssets();
    }

    @Override
    public List<Liabilities>getLiaAll(){
        return liabilitiesMapper.getLiaAll();
    }
    @Override
    public int delLiabilities(int lid){
        return liabilitiesMapper.delLiabilities(lid);
    }
    @Override
    public int insertLiabilities(Liabilities liabilitiesmodel){
        return liabilitiesMapper.insertLiabilities(liabilitiesmodel);
    }

    @Override
    public int editLiabilities(Liabilities liabilitiesmodel){
        return liabilitiesMapper.editLiabilities(liabilitiesmodel);
    }
}
